var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": [
    	{
    		'benchId':001,
    		'benchCode':'zz12341',
    		'benchName':'基准01',
    		'productId':01,
    		'benchRate':0.112,
    		'description':'0000000',
    		'weight':[
          {
      			'benchmarkCode':'zz9876',
      			'benchmarkRate': 0.743,
          },
          {
            'benchmarkCode':'zz9877',
            'benchmarkRate': 0.563,
          },
          {
            'benchmarkCode':'zz9886',
            'benchmarkRate': 0.5763,
    		  }
        ]  
    	},
    	{
    		'benchId':002,
    		'benchCode':'zz12342',
    		'benchName':'基准02',
    		'productId':02,
    		'benchRate':0.1232,
    		'description':'1111111',
    		'weight':[
          {
      			'benchmarkCode':'zz9875',
      			'benchmarkRate': 0.43
    		  }
        ]
    	},
    	{
    		'benchId':003,
    		'benchCode':'zz12343',
    		'benchName':'基准03',
    		'productId':03,
    		'benchRate':0.1532,
    		'description':'222222',
    		'weight':[
          {
      			'benchmarkCode':'zz9874',
      			'benchmarkRate': 0.223
      		}
        ]
    	}
    ],
    "page":{
      "pagesize":15,
      "currentpage":1,
      "totalpage":1,
      "totalnum":3
    }
  })
}